package com.guqinghan.guqinghan_03_sqllite;



import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import java.util.List;

@Dao // 对表进行增删改查
public interface PersonDao {

    // 增
    @Insert
    void insertPerson(Person person);


    @Update
    void updatePerson(Person person);


    @Query("DELETE FROM Person")
    void deletePerson();

    @Query("select * from Person")
    List<Person> queryAllStudent();

}
